﻿exports.EncryptUtils = {
    md5: function (str) {
        var crypto = require('crypto');
        var hasher = crypto.createHash("md5");
        hasher.update(str);
        var hashmsg = hasher.digest('hex');//hashmsg为加密之后的数据
        console.log(str + "=" + hashmsg);
        return hashmsg;
    }
};